﻿<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8" />
    <title>数据管理系统</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta content="Premium Multipurpose Admin & Dashboard Template" name="description" />
    <meta content="MyraStudio" name="author" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />

    <!-- App favicon -->
    <link rel="shortcut icon" href="assets/images/favicon.ico">

    <!-- App css -->
    <link href="/assets/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <link href="/assets/css/icons.min.css" rel="stylesheet" type="text/css" />
    <link href="/assets/css/theme.min.css" rel="stylesheet" type="text/css" />
    <link href="/assets/layui/css/layui.css" rel="stylesheet" type="text/css" />
    <link href="/assets/css/step.css" rel="stylesheet" type="text/css" />
    <link href="/assets/layui/css/transfer.css" rel="stylesheet" type="text/css" />
    <link href="/assets/css/bootstrap-table.css" rel="stylesheet" type="text/css" />
    <link href="/assets/css/bootstrap-editable.css" rel="stylesheet" type="text/css" />
    <style>
        .login-user {
            display: flex;
            color: #000;
            line-height: 30px;
        }

        .login-user input {
            height: 30px;
            border-radius: 4px;
            margin: 0px 4px;
        }

        .login-user select {
            height: 30px;
            border-radius: 4px;
            margin: 0px 4px;
            width: 20px;
        }
    </style>
</head>

<body>

    <!-- Begin page -->
    <div id="layout-wrapper">
        <div class="container-fluid" style="margin-top: 10px;">
            <!-- start page title -->
            <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
                <ul class="layui-tab-title">
                    <li class="layui-this">库备份</li>
                    <li>表备份</li>
                    <!-- <li>作业</li> -->
                </ul>
                <div class="layui-tab-content">
                    <div class="layui-tab-item layui-show">
                        <!-- <button class="layui-btn" onclick="libraryBackup()">新建库备份</button> -->
                        <button class="layui-btn" id="layer_test"  data-method="notice">新建库备份</button>
                        <br></br>
                        <table id="library_Table"></table>
                    </div>
                    <div class="layui-tab-item">
                        <button class="layui-btn" onclick="tableBackup()">新建表备份</button>
                        <button style="float: right;" class="layui-btn" onclick="delete_table_bak_all()">删除全部选中表</button>
                        <button style="float: right;" class="layui-btn" onclick="recovery_table_bak_all()">还原全部选中表</button>
                        <br></br>
                        <table id="table_Table"></table>
                    </div>
                    <!-- <div class="layui-tab-item">
                        <button class="layui-btn" onclick="agent()">新建作业</button>
                        <br></br>
                        <table id="agent_Table"></table>
                    </div> -->
                </div>
            </div>
        </div> <!-- container-fluid -->
    </div>
    <!-- END layout-wrapper -->


    <!-- libraryBak Add model -->
    <div id="libraryBakModal" class="modal fade bd-example-modal-lg" tabindex="-1" role="dialog"
        aria-labelledby="libraryBakModalLabel" style="display: none;">
        <div class="modal-dialog " role="document">
            <div class="modal-content">
                <!--模态框的头部内容-->
                <div class="modal-header">
                    <h4 class="modal-title" id="libraryBakModalLabel">新增库备份</h4>
                </div>
                <!--模态框的主体内容-->
                <div class="container-fluid" style="margin-top: 10px;">
                    <div class="layui-tab">
                        <ul class="layui-tab-title">
                            <li class="layui-this">常规</li>
                        </ul>
                        <div class="layui-tab-content">
                            <div class="layui-tab-item layui-show">
                                <form class="layui-form layui-form-pane" style="margin: 0 auto">
                                    <input class="layui-btn" type="button" id="start_bak" value="开始备份">
                                </form>
                            </div>
                        </div>
                        <div style="text-align: right">
                            <button class="layui-btn ">取消</button>
                        </div>
                    </div>
                </div><!-- /.modal-content -->
            </div><!-- /.modal-dialog -->
        </div>
    </div>
    <!-- END model -->

    <!-- tableBak Add model -->
    <div id="tableBakModal" class="modal fade bd-example-modal-lg" tabindex="-1" role="dialog"
        aria-labelledby="tableBakModalLabel" style="display: none;">
        <div class="modal-dialog modal-lg" role="document">
            <div class="modal-content">
                <!--模态框的头部内容-->
                <div class="modal-header">
                    <h4 class="modal-title" id="tableBakModalLabel">新增表备份</h4>
                </div>
                <!--模态框的主体内容-->
                <div class="container-fluid" style="margin-top: 10px;">
                    <div class="layui-tab">
                        <ul class="layui-tab-title">
                            <li class="layui-this">常规</li>
                        </ul>
                        <div class="layui-tab-content">
                            <div class="layui-tab-item layui-show">
                                <form class="layui-form layui-form-pane" style="margin: 0 auto">
                                    <div class="layui-form-item">
                                        <label class="layui-form-label" style="white-space: nowrap;">备份表选择:</label>
                                        <div class="layui-input-block" id="tb_table_name">

                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                        <div style="text-align: center">
                            <button class="layui-btn " id="tableBakSubmitBtn">保存</button>
                        </div>
                    </div>
                </div><!-- /.modal-content -->
            </div><!-- /.modal-dialog -->
        </div>
    </div>

    <!-- END model -->



    <!-- agent Add model -->
    <div id="agentModal" class="modal fade bd-example-modal-lg" tabindex="-1" role="dialog"
        aria-labelledby="agentModalLabel" style="display: none;">
        <div class="modal-dialog modal-lg" role="document">
            <div class="modal-content">
                <!--模态框的头部内容-->
                <div class="modal-header">
                    <h4 class="modal-title" id="agentModalLabel">新增作业</h4>
                </div>
                <!--模态框的主体内容-->
                <div class="container-fluid" style="margin-top: 10px;">
                    <div class="layui-tab">
                        <ul class="layui-tab-title">
                            <li class="layui-this">常规</li>
                            <li>作业步骤</li>
                            <li>作业调度</li>
                        </ul>
                        <div class="layui-tab-content">
                            <div class="layui-tab-item layui-show">
                                <form class="layui-form layui-form-pane" style="margin: 0 auto">
                                    <div class="layui-form-item">
                                        <label class="layui-form-label" style="white-space: nowrap;">作业名:</label>
                                        <div class="layui-input-block">
                                            <div class="layui-inline">
                                                <input type="text" name="task_name" lay-filter="task_name"
                                                    id="task_name" placeholder=" " class="layui-input"
                                                    lay-verify="required" required />
                                            </div>
                                            <div class="layui-inline">
                                                <input type="checkbox" name="name_check" lay-filter="name_check"
                                                    id="name_check" title="开启" lay-skin="primary">
                                            </div>
                                        </div>

                                    </div>
                                    <div class="layui-form-item">
                                        <label class="layui-form-label" style="white-space: nowrap;">作业描述:</label>
                                        <div class="layui-input-block">
                                            <textarea name="task_description" lay-filter="task_description"
                                                id="task_description" placeholder="请输入内容"
                                                class="layui-textarea"></textarea>
                                        </div>
                                    </div>

                                    <fieldset class="layui-elem-field">
                                        <legend>通知</legend>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label" style="white-space: nowrap;">邮件发送:</label>
                                            <div class="layui-input-block">
                                                <div class="layui-inline">
                                                    <select name="email_select1" lay-filter="email_select1"
                                                        id="email_select1" disabled>
                                                        <option value=""></option>
                                                    </select>
                                                </div>
                                                <div class="layui-inline">
                                                    <select name="email_select2" lay-filter="email_select2"
                                                        id="email_select2" disabled>
                                                        <option value="">当作业执行成功时</option>
                                                        <option value="">当作业执行失败时</option>
                                                        <option value="">当作业执行结束时</option>
                                                    </select>
                                                </div>
                                                <div class="layui-inline">
                                                    <input type="checkbox" name="email_check" lay-filter="email_check"
                                                        id="email_check" title="开启" lay-skin="primary">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label" style="white-space: nowrap;">网络发送:</label>
                                            <div class="layui-input-block">
                                                <div class="layui-inline">
                                                    <select name="internet_select1" lay-filter="internet_select1"
                                                        id="internet_select1" disabled>
                                                        <option value=""></option>
                                                    </select>
                                                </div>
                                                <div class="layui-inline">
                                                    <select name="internet_select2" lay-filter="internet_select2"
                                                        id="internet_select2" disabled>
                                                        <option value="">当作业执行成功时</option>
                                                        <option value="">当作业执行失败时</option>
                                                        <option value="">当作业执行结束时</option>
                                                    </select>
                                                </div>
                                                <div class="layui-inline">
                                                    <input type="checkbox" name="internet_check"
                                                        lay-filter="internet_check" id="internet_check" title="开启"
                                                        lay-skin="primary">
                                                </div>
                                            </div>
                                        </div>
                                    </fieldset>

                                </form>
                            </div>
                            <div class="layui-tab-item">
                                <div class="layui-inline" style="float: left;">
                                    <input type="button" class="layui-btn " id="upBtn" name="upBtn" lay-filter="upBtn"
                                        value="上移">
                                    <input type="button" class="layui-btn " id="downBtn" name="downBtn"
                                        lay-filter="downBtn" value="下移">
                                </div>
                                <div class="layui-inline" style="float: right;">
                                    <button class="layui-btn " id="" onclick="step()">新增</button>
                                    <button class="layui-btn " id="">编辑</button>
                                    <button class="layui-btn " id="">删除</button>
                                </div>
                                <form class="layui-form" style="margin: 0 auto">
                                    <div class="layui-form-item">
                                        <table id="agent_table_step" lay-filter="agent_table_step"></table>
                                    </div>
                                </form>
                            </div>
                            <div class="layui-tab-item">
                                <div class="layui-inline" style="float: right;">
                                    <button class="layui-btn " id="" onclick="scheduling()">新增</button>
                                    <button class="layui-btn " id="">编辑</button>
                                    <button class="layui-btn " id="">删除</button>
                                </div>
                                <form class="layui-form" style="margin: 0 auto">
                                    <div class="layui-form-item">
                                        <table id="agent_table_dispatch" lay-filter="agent_table_dispatch"></table>
                                    </div>
                                </form>
                            </div>
                        </div>
                        <div style="text-align: center">
                            <button class="layui-btn " id="agentSubmitBtn">保存</button>
                        </div>
                    </div>
                </div><!-- /.modal-content -->
            </div><!-- /.modal-dialog -->
        </div>
    </div>

    <!-- END model -->

    <!-- 作业步骤 Add model -->
    <div id="stepModal" class="modal fade bd-example-modal-lg" tabindex="-1" role="dialog"
        aria-labelledby="stepModalLabel" style="display: none;">
        <div class="modal-dialog modal-lg" role="document">
            <div class="modal-content">
                <!--模态框的头部内容-->
                <div class="modal-header">
                    <h4 class="modal-title" id="stepModalLabel">新建作业步骤</h4>
                </div>
                <!--模态框的主体内容-->
                <div class="container-fluid" style="margin-top: 10px;">
                    <div class="layui-tab">
                        <ul class="layui-tab-title">
                            <li class="layui-this">常规</li>
                            <li>高级</li>
                        </ul>
                        <div class="layui-tab-content">
                            <div class="layui-tab-item layui-show">
                                <form class="layui-form layui-form-pane" style="margin: 0 auto">
                                    <div class="layui-form-item">
                                        <label class="layui-form-label" style="white-space: nowrap;">作业名称:</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="" lay-filter="" id="" placeholder=" "
                                                class="layui-input" lay-verify="required" required />
                                        </div>
                                    </div>
                                    <div class="layui-form-item">
                                        <label class="layui-form-label" style="white-space: nowrap;">步骤名称:</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="" lay-filter="" id="" placeholder=" "
                                                class="layui-input" lay-verify="required" required />
                                        </div>
                                    </div>
                                    <div class="layui-form-item">
                                        <label class="layui-form-label" style="white-space: nowrap;">步骤类型:</label>
                                        <div class="layui-input-block">
                                            <select name="step_type" lay-filter="step_type" id="step_type">
                                                <option value="SQL脚本">SQL脚本</option>
                                                <option value="重组数据库">重组数据库</option>
                                                <option value="更新统计信息">更新统计信息</option>
                                                <option value="数据迀移">数据迀移</option>
                                                <option value="备份数据库">备份数据库</option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="layui-form-item" id="script_statements">
                                        <label class="layui-form-label" style="white-space: nowrap;">脚本语句:</label>
                                        <div class="layui-input-block">
                                            <textarea name="" lay-filter="" id="" placeholder="请输入内容"
                                                class="layui-textarea"></textarea>
                                        </div>
                                    </div>
                                    <div class="layui-form-item" id="data_migration" style="display: none;">
                                        <label class="layui-form-label" style="white-space: nowrap;">配置文件:</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="" lay-filter="" id="" placeholder=" "
                                                class="layui-input" lay-verify="required" required />
                                        </div>
                                    </div>
                                    <div id="backup_database" style="display: none;">
                                        <div class="layui-form-item">
                                            <label class="layui-form-label" style="white-space: nowrap;">备份路径:</label>
                                            <div class="layui-input-block">
                                                <textarea name="backup_database_backup_path" lay-filter="" id=""
                                                    placeholder="请输入内容" class="layui-textarea"></textarea>
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <div class="layui-inline">
                                                <label class="layui-form-label"
                                                    style="white-space: nowrap;">备份并行数:</label>
                                                <div class="layui-input-block">
                                                    <input type="text" name="" lay-filter="" id="" placeholder=" "
                                                        class="layui-input" lay-verify="required" required />
                                                </div>
                                            </div>
                                            <div class="layui-inline">(0~9)</div>
                                            <div class="layui-inline">
                                                <label class="layui-form-label"
                                                    style="white-space: nowrap;">备份片大小:</label>
                                                <div class="layui-input-block">
                                                    <input type="text" name="" lay-filter="" id="" placeholder=" "
                                                        class="layui-input" lay-verify="required" required />
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <div class="layui-inline">
                                                <label class="layui-form-label"
                                                    style="white-space: nowrap;">读速度上限:</label>
                                                <div class="layui-input-block">
                                                    <input type="text" name="" lay-filter="" id="" placeholder=" "
                                                        class="layui-input" lay-verify="required" required />
                                                </div>
                                            </div>
                                            <div class="layui-inline">(M/S)</div>
                                            <div class="layui-inline">
                                                <label class="layui-form-label"
                                                    style="white-space: nowrap;">写速度上限:</label>
                                                <div class="layui-input-block">
                                                    <input type="text" name="" lay-filter="" id="" placeholder=" "
                                                        class="layui-input" lay-verify="required" required />
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label" style="white-space: nowrap;">备份方式:</label>
                                            <div class="layui-input-block">
                                                <input type="radio" name="backup_method_radio" value="完全备份" title="完全备份"
                                                    checked lay-filter="backup_method_radio">
                                                <input type="radio" name="backup_method_radio" value="累积增量备份"
                                                    title="累积增量备份" lay-filter="backup_method_radio">
                                                <input type="radio" name="backup_method_radio" value="归档备份" title="归档备份"
                                                    lay-filter="backup_method_radio">
                                                <input type="radio" name="backup_method_radio" value="差异增量备份"
                                                    title="差异增量备份" lay-filter="backup_method_radio">
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <div class="layui-inline">
                                                <label class="layui-form-label"
                                                    style="white-space: nowrap;">压缩级别:</label>
                                                <div class="layui-input-block">
                                                    <input type="text" name="compression_level"
                                                        lay-filter="compression_level" id="compression_level"
                                                        placeholder=" " class="layui-input" disabled />
                                                </div>
                                            </div>
                                            <div class="layui-inline">(0~9)</div>
                                            <div class="layui-inline">
                                                <input type="checkbox" name="compress_check" lay-filter="compress_check"
                                                    id="compress_check" title="压缩" lay-skin="primary">
                                            </div>
                                            <div class="layui-inline">
                                                <input type="checkbox" name="backup_log_check"
                                                    lay-filter="backup_log_check" id="backup_log_check" title="备份日志"
                                                    lay-skin="primary">
                                            </div>
                                        </div>
                                        <form class="layui-form" style="margin: 0 auto">
                                            <div class="layui-form-item" id="backup_method_table_div"
                                                style="display: none;">
                                                <table id="backup_method_table" lay-filter="backup_method_table">
                                                </table>
                                            </div>
                                        </form>
                                    </div>
                                </form>
                            </div>
                            <div class="layui-tab-item">
                                <form class="layui-form layui-form-pane" style="margin: 0 auto">

                                    <fieldset class="layui-elem-field">
                                        <legend>作业步骤完成后的操作</legend>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label" style="white-space: nowrap;">成功时:</label>
                                            <div class="layui-input-block">
                                                <select name="" lay-filter="" id="">
                                                    <option value="不报告执行成功并结束作业">不报告执行成功并结束作业</option>
                                                    <option value="报告执行成功并结束作业">报告执行成功并结束作业</option>
                                                    <option value="不报告执行成功并继续执行下一步">不报告执行成功并继续执行下一步</option>
                                                    <option value="报告执行成功并继续执行下一步">报告执行成功并继续执行下一步</option>
                                                </select>
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label" style="white-space: nowrap;">失败时:</label>
                                            <div class="layui-input-block">
                                                <select name="" lay-filter="" id="">
                                                    <option value="不报告执行成功并结束作业">不报告执行成功并结束作业</option>
                                                    <option value="报告执行成功并结束作业">报告执行成功并结束作业</option>
                                                    <option value="不报告执行成功并继续执行下一步">不报告执行成功并继续执行下一步</option>
                                                    <option value="报告执行成功并继续执行下一步">报告执行成功并继续执行下一步</option>
                                                </select>
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <div class="layui-inline">

                                                <label class="layui-form-label"
                                                    style="white-space: nowrap;">重复次数:</label>
                                                <div class="layui-input-block">
                                                    <div class="layui-inline">
                                                        <input type="number" name="" lay-filter="" id="" placeholder=" "
                                                            class="layui-input" lay-verify="required" min="0" max="100"
                                                            required />
                                                    </div>
                                                    <div class="layui-inline">(0~100)</div>
                                                </div>
                                            </div>
                                            <div class="layui-inline">
                                                <label class="layui-form-label"
                                                    style="white-space: nowrap;">重复间隔:</label>
                                                <div class="layui-input-block">
                                                    <input type="number" name="" lay-filter="" id="" placeholder=" "
                                                        min="0" class="layui-input" lay-verify="required" required />
                                                </div>
                                            </div>
                                        </div>
                                    </fieldset>
                                </form>
                                <form class="layui-form layui-form-pane" style="margin: 0 auto">
                                    <fieldset class="layui-elem-field">
                                        <legend>脚本输出文件</legend>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label" style="white-space: nowrap;">输出文件:</label>
                                            <div class="layui-input-block">
                                                <input type="text" name="" lay-filter="" id="" placeholder=" "
                                                    class="layui-input" lay-verify="required" required />
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <input type="checkbox" name="" lay-filter="" id="" title="追加方式"
                                                lay-skin="primary">
                                        </div>
                                    </fieldset>
                                </form>
                            </div>
                        </div>
                        <div style="text-align: center">
                            <button class="layui-btn " id="testSubmitBtn">确定</button>
                            <button class="layui-btn " id="testSubmitBtn">取消</button>
                        </div>
                    </div>
                </div><!-- /.modal-content -->
            </div><!-- /.modal-dialog -->
        </div>
    </div>

    <!-- END model -->

    <!-- 作业调度 Add model -->
    <div id="schedulingModal" class="modal fade bd-example-modal-lg" tabindex="-1" role="dialog"
        aria-labelledby="schedulingModalLabel" style="display: none;">
        <div class="modal-dialog modal-lg" role="document">
            <div class="modal-content">
                <!--模态框的头部内容-->
                <div class="modal-header">
                    <h4 class="modal-title" id="schedulingModalLabel">新建作业调度</h4>
                </div>
                <!--模态框的主体内容-->
                <div class="container-fluid" style="margin-top: 10px;">
                    <div class="layui-tab">
                        <ul class="layui-tab-title">
                            <li class="layui-this">常规</li>
                        </ul>
                        <div class="layui-tab-content">
                            <div class="layui-tab-item layui-show">
                                <form class="layui-form layui-form-pane" style="margin: 0 auto">
                                    <div class="layui-form-item">
                                        <label class="layui-form-label" style="white-space: nowrap;">名称:</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="job_scheduling_name"
                                                lay-filter="job_scheduling_name" id="job_scheduling_name"
                                                placeholder=" " class=" layui-input" lay-verify="required" required />
                                        </div>
                                    </div>
                                    <div class="layui-form-item">
                                        <label class="layui-form-label" style="white-space: nowrap;">调度类型:</label>
                                        <div class="layui-input-block">
                                            <select name="scheduling_type" lay-filter="scheduling_type"
                                                id="scheduling_type">
                                                <option value="执行一次">执行一次</option>
                                                <option value="反复执行">反复执行</option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="layui-form-item" id="Execute_once">
                                        <label class="layui-form-label" style="white-space: nowrap;">时间:</label>
                                        <div class="layui-input-block">
                                            <!-- <input type="datetime-local" name="" lay-filter="" id="" placeholder=" "
                                                step="1" class="layui-input" lay-verify="required" required /> -->
                                            <input type="text" class="layui-input" id="execute_once_time"
                                                placeholder="yyyy-MM-dd HH:mm:ss">
                                        </div>
                                    </div>
                                    <div style="display: none;" id="Repeated_execution">
                                        <fieldset class="layui-elem-field">
                                            <legend>发生频率</legend>
                                            <div class="layui-form-item">
                                                <label class="layui-form-label" style="white-space: nowrap;">类别:</label>
                                                <div class="layui-input-block">
                                                    <select name="scheduling_frequency"
                                                        lay-filter="scheduling_frequency" id="scheduling_frequency">
                                                        <option value="天">天</option>
                                                        <option value="周">周</option>
                                                        <option value="月">月</option>
                                                    </select>
                                                </div>
                                            </div>
                                            <div class="layui-form-item" id="day_part">
                                                <label class="layui-form-label" style="white-space: nowrap;">每:</label>
                                                <div class="layui-input-block">
                                                    <div class="layui-inline">
                                                        <input type="number" name="" lay-filter="" id="" placeholder=" "
                                                            min="1" class=" layui-input" lay-verify="required"
                                                            required />
                                                    </div>
                                                    <div class="layui-inline">天</div>
                                                </div>
                                            </div>
                                            <div class="layui-form-item" id="week_part" style="display: none;">
                                                <label class="layui-form-label" style="white-space: nowrap;">每:</label>
                                                <div class="layui-input-block">
                                                    <div class="layui-inline">
                                                        <input type="number" name="" lay-filter="" id="" placeholder=" "
                                                            min="1" class=" layui-input" lay-verify="required"
                                                            required />
                                                    </div>
                                                    <div class="layui-inline">周</div>
                                                </div>
                                            </div>
                                            <div class="layui-form-item" id="week_part_select" style="display: none;">
                                            </div>
                                            <div class="layui-form-item" id="month_part" style="display: none;">
                                                <label class="layui-form-label" style="white-space: nowrap;">每:</label>
                                                <div class="layui-input-block">
                                                    <div class="layui-inline">
                                                        <input type="number" name="" lay-filter="" id="" placeholder=" "
                                                            min="1" class=" layui-input" lay-verify="required"
                                                            required />
                                                    </div>
                                                    <div class="layui-inline">月</div>
                                                </div>
                                            </div>
                                            <div class="layui-form-item" id="month_part_radio" style="display: none;">
                                                <div class="layui-form-item">
                                                    <div class="layui-inline">
                                                        <input type="radio" name="month_part_dayrorweek" value="日"
                                                            checked lay-filter="month_part_dayrorweek">
                                                    </div>
                                                    <div class="layui-inline">第:</div>
                                                    <div class="layui-inline">
                                                        <input type="number" name="month_part_day_input"
                                                            lay-filter="month_part_day_input" id="month_part_day_input"
                                                            placeholder=" " min="1" class=" layui-input"
                                                            lay-verify="required" required />
                                                    </div>
                                                    <div class="layui-inline">日</div>
                                                </div>
                                                <div class="layui-form-item">
                                                    <div class="layui-inline">
                                                        <input type="radio" name="month_part_dayrorweek" value="月"
                                                            lay-filter="month_part_dayrorweek">
                                                    </div>
                                                    <div class="layui-inline">
                                                        <select name="month_part_week_select1"
                                                            lay-filter="month_part_week_select1"
                                                            id="month_part_week_select1" disabled>
                                                            <option value="">第一个</option>
                                                            <option value="">第二个</option>
                                                            <option value="">第三个</option>
                                                            <option value="">第四个</option>
                                                            <option value="">最后一个</option>
                                                        </select>
                                                    </div>
                                                    <div class="layui-inline">
                                                        <select name="month_part_week_select2"
                                                            lay-filter="month_part_week_select2"
                                                            id="month_part_week_select2" disabled>
                                                            <option value="">星期一</option>
                                                            <option value="">星期二</option>
                                                            <option value="">星期三</option>
                                                            <option value="">星期四</option>
                                                            <option value="">星期五</option>
                                                            <option value="">星期六</option>
                                                            <option value="">星期日</option>
                                                        </select>
                                                    </div>
                                                </div>
                                            </div>
                                        </fieldset>
                                        <fieldset class="layui-elem-field">
                                            <legend>每日频率</legend>
                                            <div class="layui-form-item">
                                                <div class="layui-inline">
                                                    <input type="radio" name="daily_frequency" value="once" checked
                                                        title="执行一次:" lay-filter="daily_frequency">
                                                </div>
                                                <div class="layui-inline">
                                                    <input type="text" class="layui-input" id="once_time"
                                                        placeholder="HH:mm:ss">
                                                </div>
                                            </div>
                                            <div class="layui-form-item">
                                                <div class="layui-inline">
                                                    <input type="radio" name="daily_frequency" value="cycle"
                                                        title="执行周期:" lay-filter="daily_frequency">
                                                </div>
                                                <div class="layui-inline">每隔:</div>
                                                <div class="layui-inline">
                                                    <input type="number" name="cycle_time1" lay-filter="cycle_time1"
                                                        id="cycle_time1" placeholder=" " min="1" class=" layui-input"
                                                        disabled />
                                                </div>
                                                <div class="layui-inline">
                                                    <select name="cycle_time2" lay-filter="cycle_time2" id="cycle_time2"
                                                        disabled>
                                                        <option value="">分钟</option>
                                                        <option value="">小时</option>
                                                    </select>
                                                </div>

                                                <div class="layui-input-block">
                                                    <div class="layui-inline">开始时间:</div>
                                                    <div class="layui-inline">
                                                        <input type="text" class="layui-input" id="cycle_start_time"
                                                            name="cycle_start_time" lay-filter="cycle_start_time"
                                                            placeholder="HH:mm:ss" disabled>
                                                    </div>
                                                    <div class="layui-inline">结束时间:</div>
                                                    <div class="layui-inline">
                                                        <input type="text" class="layui-input" id="cycle_end_time"
                                                            name="cycle_end_time" lay-filter="cycle_end_time"
                                                            placeholder="HH:mm:ss" disabled>
                                                    </div>
                                                </div>

                                            </div>
                                        </fieldset>
                                        <fieldset class="layui-elem-field">
                                            <legend>持续时间</legend>
                                            <div class="layui-form-item">
                                                <label class="layui-form-label"
                                                    style="white-space: nowrap;">开始日期:</label>
                                                <div class="layui-input-block">
                                                    <div class="layui-inline">
                                                        <!-- <input type="datetime-local" name="duration_start"
                                                            lay-filter="duration_start" id="duration_start"
                                                            placeholder=" " step="1" class="layui-input"
                                                            lay-verify="required" required /> -->
                                                        <input type="text" class="layui-input" id="duration_start"
                                                            placeholder="yyyy-MM-dd HH:mm:ss">
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="layui-form-item">
                                                <label class="layui-form-label"
                                                    style="white-space: nowrap;">结束日期:</label>
                                                <div class="layui-input-block">
                                                    <div class="layui-inline">
                                                        <!-- <input type="datetime-local" name="duration_end"
                                                            lay-filter="duration_end" id="duration_end" placeholder=" "
                                                            step="1" class="layui-input" disabled /> -->
                                                        <input type="text" class="layui-input" id="duration_end"
                                                            placeholder="yyyy-MM-dd HH:mm:ss" disabled>
                                                    </div>
                                                    <div class="layui-inline">
                                                        <input type="checkbox" name="no_duration_end"
                                                            lay-filter="no_duration_end" id="no_duration_end"
                                                            title="无结束日期" lay-skin="primary" checked>
                                                    </div>
                                                </div>
                                            </div>
                                        </fieldset>
                                    </div>
                                    <div class="layui-form-item">
                                        <label class="layui-form-label" style="white-space: nowrap;">描述:</label>
                                        <div class="layui-input-block">
                                            <textarea name="" lay-filter="" id="" placeholder="请输入内容"
                                                class="layui-textarea"></textarea>
                                        </div>
                                    </div>
                                </form>

                            </div>
                        </div>
                        <div style="text-align: center">
                            <button class="layui-btn " id="testSubmitBtn">确定</button>
                            <button class="layui-btn " id="testSubmitBtn">取消</button>
                        </div>
                    </div>
                </div><!-- /.modal-content -->
            </div><!-- /.modal-dialog -->
        </div>
    </div>

    <!-- END model -->

    <!-- <script type="text/html" id="recovery_table_bar">
        <a href='javascript:;' class='btn btn-xs red' title='还原' onclick="recovery_table_bak()"><span class='feather-rotate-ccw'></span></a>
      </script>

    <script type="text/html" id="delete_table_bar">
        <a href='javascript:;' class='btn btn-xs red' title='删除' onclick=""><span class='feather-trash-2'></span></a>
      </script> -->


    <!-- Overlay-->
    <div class="menu-overlay"></div>


    <script>
        var ipm = '[[${manageIp}]]';
    </script>
    <!-- jQuery  -->
    <script src="/assets/js/jquery.min.js"></script>
    <script src="/assets/js/bootstrap.bundle.min.js"></script>
    <script src="/assets/js/metismenu.min.js"></script>
    <script src="/assets/js/waves.js"></script>
    <script src="/assets/js/simplebar.min.js"></script>
    <script src="/assets/layui/layui.js"></script>
    <script src="/assets/js/bootstrap-table.js"></script>
    <script src="/assets/js/bootstrap-table-zh-CN.js"></script>
    <script src="/assets/js/bootstrap-editable.js"></script>
    <script src="/assets/js/bootstrap-table-editable.js"></script>
    <script src="/assets/js/step.js"></script>
    <script src="/assets/js/xm-select.js"></script>
    <!-- Morris Js-->
    <script src="/assets/plugins/morris-js/morris.min.js"></script>
    <!-- Raphael Js-->
    <script src="/assets/plugins/raphael/raphael.min.js"></script>

    <!-- Chart Js-->
    <script src="/assets/plugins/jquery-knob/jquery.knob.min.js"></script>

    <!-- Morris Custom Js-->
    <script src="/assets/pages/databasebak-demo.js"></script>
    <script src="/assets/pages/arrowall.js"></script>

    <!-- App js -->
    <script src="/assets/js/theme.js"></script>

</body>

</html>